Conversation
Xe
commented
Sep 8, 2018
|
It would be better if we can have a more accurate way to represent the current time and make it the only way at the core API layer, like milliseconds/nanoseconds/struct timeval. |
|
This makes sense. How would you propose this? I bike shed the following C-like struct if only because it mirrors what the Go runtime uses for time values to make the code easier for me to write: struct time_timeval {
int64 unix_time_gmt_seconds;
int64 nanoseconds_since_last_whole_second;
} |
|
Agreed on the time accuracy issue. Providing only seconds is way too limiting for many applications. Another (possibly simpler) option is to go with just a Yet another observation: what about different kinds of times? |